package com.coolled.demo03.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;


/**
 * 编号字典
 */
@TableName("dbo.partMaster")
@Getter
@Setter
@ToString
@Accessors(chain = true)
public class PartMaster implements Serializable {

    /**
     * 清单主键id
     */
    @TableId(value = "partIndex", type = IdType.AUTO)
    private Integer partIndex;
    /**
     * 编号
     */
    private String partNumber;
    /**
     * 名称
     */
    private String partName;
    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
    /**
     * 更改时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date lastTime;
    /**
     * 工序编号
     */
    @TableField(value = "\"procedure\"")
    private String procedureNumber;


}

